<?php
	class NewlistAction extends BaseAction{
		public function index(){
			$n_id = stripslashes($_GET['n_id']);
			$result = M("news")->where("id=$n_id")->select();
			$this->assign("result",$result);

			//精品写字楼
			$tuijian = M("xiezilou")->join("area ON xiezilou.x_quyu = area.a_id")->join("rent ON rent.r_id = xiezilou.x_zulin")->where("xiezilou.is_jingpin=1")->field("xiezilou.x_name,xiezilou.x_m_rent")->select();
			$this->assign("tuijian",$tuijian);
			
			//精品商铺出租
			$shangpu = M("shangpu")->join("area ON shangpu.s_quyu = area.a_id")->join("rent ON rent.r_id = shangpu.s_zulin")->where("shangpu.is_jingpin=1")->field("shangpu.s_id,shangpu.s_name,shangpu.s_d_rent")->select();
			$this->assign("sh",$shangpu);
			$this->display();
		}
	
	}



?>